﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace VideoCache.Server.MVCWeb.Models
{
    public class AjaxResultModel
    {
        public bool Error { get; set; }
        public string Message { get; set; }
        public object Data { get; set; }

        public AjaxResultModel(bool error, string message)
        {
            this.Error = error;
            this.Message = message;
        }

        public AjaxResultModel(object data)
        {
            this.Error = false;
            this.Data = data;
        }
    }
}